package edu.tms.bean;

import java.util.*;


public class User {
	/**
	 * 用户id
	 */
	private Integer userId;

	/**
	 * 用户账号
	 */
	private String userAccount;

	/**
	 * 用户名
	 */
	private String userName;

	/**
	 * 登录密码
	 */
	private String password;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 人物类型 1学生,2教师,3辅导员,4管理员
	 */
	private Integer userType;

	/**
	 * 人物状态  1正常 2冻结
	 */
	private Integer userState;
	
	
	private Date prevLoginTime;


	public User () {
		super();
	}

	public User (Integer userId,String userAccount,String userName,String password,Date createTime,Integer userType,Integer userState) {
		this.userId = userId;
		this.userAccount = userAccount;
		this.userName = userName;
		this.password = password;
		this.createTime = createTime;
		this.userType = userType;
		this.userState = userState;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserAccount() {
		return this.userAccount;
	}

	public Date getPrevLoginTime() {
		return prevLoginTime;
	}

	public void setPrevLoginTime(Date prevLoginTime) {
		this.prevLoginTime = prevLoginTime;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}


	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getUserType() {
		return this.userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public Integer getUserState() {
		return this.userState;
	}

	public void setUserState(Integer userState) {
		this.userState = userState;
	}

	@Override
	public String toString() {
		return "User[userId=" + userId+ ", userAccount=" + userAccount + ", userName=" + userName + ", password=" + password + ", createTime=" + createTime + ", userType=" + userType + ", userState=" + userState + "]";
	}


}

